package com.tdkj.util;

import javax.servlet.http.HttpServletRequest;

public class JspToolkit {
	public static String getPath(HttpServletRequest request){
		String path = request.getContextPath();
		return path;
	}
	
	public static String getBasePath(HttpServletRequest request){
		String path = getPath(request);
		String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
		return  basePath;
	}
}
